package com.iot08.api.config.properties;

import com.iot08.common.utils.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @Description:
 * @author: Rock
 * @time: 2021/1/6 11:29
 */
@Configuration
@ConfigurationProperties(prefix = "list")
@Component
@Slf4j
public class CommonProperties {

    private List<Map<String, Object>> renew;

    private List<Map<String, Object>> juphoon;

    public List<Map<String, Object>> getRenew() {
        return renew;
    }

    public void setRenew(List<Map<String, Object>> renew) {
        log.info("renew={}", renew);
        this.renew = renew;
    }

    public List<Map<String, Object>> getJuphoon() {
        return juphoon;
    }

    public void setJuphoon(List<Map<String, Object>> juphoon) {
        log.info("juphoon={}", juphoon);
        this.juphoon = juphoon;
    }
}
